<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script type="text/javascript" src="../Fantacalcio/js/validate.js"></script>
<link rel=stylesheet href="css/style.css" type="text/css">
<title>Fantacalcio | Login</title>
</head>
<body>

	<c:import url="head.jsp" />
	
	<div class="nav">
		<span class="menuButton"><a href="#"></a></span>
	</div>
	
	<div class="context">
		<h1>Login</h1>
		<form id="formlogin" action="Login.do" method="post">
			<table>
				<tr>
					<td><label class="prop">Username:</label></td>
					<td><input type="text" name="username" value="${username }"/> </td>
				</tr>
				<tr>
					<td><label class="prop">Password:</label></td>
					<td><input type="password" name="password"/> </td>
				</tr>
			</table>
			<div class="buttons">
	        	<span class="buttons"><input type="submit" value="Login" onclick="return validateFormLogin();"/></span>
	        </div>
		</form>
		<c:if test="${msg != null }">
			<div class="error">
				<span>${msg}</span>
			</div>
		</c:if>
	</div>
	
	<c:import url="footer.jsp" />
	
</body>
</html>